package com.wsoft.dc.query.config.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 待办实体对象
 * </p>
 *
 * @author Z001
 * @since 2024年12月17日 16:18:19
 */
@Data
public class ConfigEntityBaseQuery {

    @NotNull(message = "配置id不能为空")
    private Long configId;

    @NotBlank(message = "属性名不能为空")
    @Schema(description = "属性名")
    private String attribute;

    @Schema(description = "显示名称")
    private String title;

    @Schema(description = "是否显示")
    private Integer isShow;

    @Schema(description = "排序")
    private Integer sort;

    @Schema(description = "数据类型(默认、字典、用户、组织、岗位、职务级别、自定义枚举)")
    private String type;

    @Schema(description = "数据类型值")
    private String typeValue;

    @Schema(description = "是否唯一值")
    private Integer isKey;

    @Schema(description = "是否查询条件")
    private Integer isQuery;

    @Schema(description = "是否排序")
    private Integer isSort;
}
